
package com.limoilux.cobolux.ui.wizards;

import com.limoilux.cobolux.core.ProjectCreator;
import com.limoilux.cobolux.core.RessourceCreator;

public class ProjectWizard extends RessourceWizard
{
	public static final String EXTENSION = "com.limoilux.cobolux.wizards.project";
	private ProjectWizardPage page;

	public ProjectWizard()
	{
		super();
	}

	@Override
	public void addPages()
	{
		this.page = new ProjectWizardPage(this.selection);

		this.addPage(this.page);
	}

	@Override
	public RessourceCreator defineCreator()
	{
		ProjectCreator creator = new ProjectCreator();

		creator.setName(this.page.getProjectName());

		return creator;
	}
}
